export function piniaResetPlugin() {
  return ({ store }) => {
    //保存初始状态的副本
    const initialState = JSON.parse(JSON.stringify(store.$state))
    //重置状态

    store.$reset = () => {
      store.$patch(initialState)
    }
  }
}
